//
//  WZTask.m
//  WZEfengAndEtong
//
//  Created by wanzhao on 16/6/8.
//  Copyright © 2016年 wanzhao. All rights reserved.
//

#import "WZTask.h"

@implementation WZTask

+ (instancetype)taskWithDict:(NSDictionary *)dict {
    
    id obj = [[self alloc] init];
    [obj setValuesForKeysWithDictionary:dict];
    return obj;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {    }


+ (NSDictionary *)replacedKeyFromPropertyName {
    
    return @{@"taskID" : @"id"};
}

- (NSString *)planExecBeginDate {
    
    return [NSDate dateStrFromCstampTimeStr:_planExecBeginDate withDateFormatter:@"MM-dd HH:mm"];
}

- (NSString *)planExecEndDate {
    
    return [NSDate dateStrFromCstampTimeStr:_planExecEndDate withDateFormatter:@"MM-dd HH:mm"];
}

@end
